package com.hzh302.restsecurity.rest;

import java.security.Principal;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rest/login")
public class LoginRest {
	@RequestMapping(method = RequestMethod.GET)
	public Principal get(Principal user) {
		return user;
	}
}
